<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<?php 
		$img = "izwebz.pdf";
		$l = strlen($img);
		$allowed = array('jpg', 'png', 'gif');
		$split = explode('.', $img);
		$ext = end($split);
		// if (($l<15)&&in_array($ext, $allowed)) {
		if (($l<15)||in_array($ext, $allowed)) {
			echo "Your image is ready for upload";
		}else{
			echo "Your image is not either the valid type or over the size limit";
		}
	?>
</body>
</html>